
<%@ page import="dex.micros_gdc.Testcase" %>
<!DOCTYPE html>
<html>
	<head>
		<meta name="layout" content="main">
		<g:set var="entityName" value="${message(code: 'testcase.label', default: 'Testcase')}" />
		<g:set var="taskEntityName" value="${message(code: 'task.label', default: 'Back Task')}" />
		<title><g:message code="default.list.label" args="[entityName]" /></title>
	</head>
	<body>
		<a href="#list-testcase" class="skip" tabindex="-1"><g:message code="default.link.skip.label" default="Skip to content&hellip;"/></a>
		<div class="nav" role="navigation">
			<ul>
				<li><g:link class="list" controller="task" action="list"><g:message code="default.list.label" args="[taskEntityName]" /></g:link></li>
			</ul>
		</div>
		<div id="list-testcase" class="content scaffold-list" role="main">
			<h1><g:message code="default.list.label" args="[entityName]" /></h1>
			<g:if test="${flash.message}">
			<div class="message" role="status">${flash.message}</div>
			</g:if>
			<table>
				<thead>
					<tr>

						<g:sortableColumn property="projectName" title="${message(code: 'testcase.projectName.label', default: 'Project')}" />

						<g:sortableColumn property="activityNumber" title="${message(code: 'testcase.activityNumber.label', default: 'Activity #')}" />

						<g:sortableColumn property="receivedDate" title="${message(code: 'testcase.receivedDate.label', default: 'Rec Date')}" />

						<g:sortableColumn property="status" title="${message(code: 'testcase.status.label', default: 'Status')}" />

						<g:sortableColumn property="dueDate" title="${message(code: 'testcase.dueDate.label', default: 'Due Date')}" />

						<g:sortableColumn property="testcaseStatus" title="${message(code: 'testcase.testcaseStatus.label', default: 'Testcase Status')}" />

						<g:sortableColumn property="delivered" title="${message(code: 'testcase.delivered.label', default: 'Delivered')}" />

						<g:sortableColumn property="comments" title="${message(code: 'testcase.comments.label', default: 'Comments')}" />
					</tr>
				</thead>
				<tbody>
				<g:each in="${testcaseInstanceList}" status="i" var="testcaseInstance">
					<tr class="${(i % 2) == 0 ? 'even' : 'odd'}">

						<td><g:link action="show" id="${testcaseInstance.id}">${fieldValue(bean: testcaseInstance, field: "projectName")}</g:link></td>

						<td>${fieldValue(bean: testcaseInstance, field: "activityNumber")}</td>

						<td><g:formatDate date="${testcaseInstance.receivedDate}" format="MM/dd/yyyy"/></td>

						<td>${fieldValue(bean: testcaseInstance, field: "status")}</td>

						<td><g:formatDate date="${testcaseInstance.dueDate}" format="MM/dd/yyyy"/></td>

						<td>${fieldValue(bean: testcaseInstance, field: "testcaseStatus")}</td>

						<td>${fieldValue(bean: testcaseInstance, field: "delivered")}</td>

						<td>${fieldValue(bean: testcaseInstance, field: "comments")}</td>

					</tr>
				</g:each>
				</tbody>
			</table>
			<div class="pagination">
				<g:paginate total="${testcaseInstanceTotal}" />
			</div>
			<export:formats formats="['excel']"/>
		</div>
	</body>
</html>
